package com.hot.service;

import com.hot.Entity.User;
import com.hot.repository.UserRespository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Auther: wang.j.f
 * @Date: 2020/11/18 22:24
 * @Description:
 */
@Service
public class HotSercvice {

    @Resource
    private UserRespository userRespository;


    public List<User> getFromMysql(){
        List<User> all = userRespository.findAll();
        return all;
    }

}
